﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Event - Event Helpers</title>
    <script src="script/jquery-1.3.2.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        $(document).ready(function() {
            $("#country").change(ShowCountry).change();
            //$("#btn").bind("click", function() { $("#country").change(); });
        });

        function ShowCountry() {
            var message = $("#country").val();
            alert(message);
        }
    </script>
</head>
<body>
    <select id="country" onchange="ShowCountry()">
        <option value="Indonesia">Indonesia</option>
        <option value="Jepang">Jepang</option>
        <option value="Korea">Korea</option>
    </select> 
    <input id="btn" type="button" value="trigger change" />
</body>
</html>
